<?php

namespace app\extend\kline;

class OpenExchangeRate
{
    protected static $http = 'https://openexchangerates.org/';

    private static $_appId = 'b1a16c3cfd854a5fae59081c8e944193';

    /**
     * 获取金额
     */
    public static function getPrice()
    {
        $api = self::$http.'api/latest.json?app_id='.self::$_appId;

        $result = curlGet($api);

        return $result['rates'];
    }
}

